From: Carlos Garnacho Date: Thu, 31 Jan 2019 11:02:39 +0000 (+0100) Subject: shell: Do not set XFixes input region on wayland compositors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~182 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=771b1a0788198bfb9e82fd07c43d81413913cbfe;p=gnome-shell.git shell: Do not set XFixes input region on wayland compositors This is just needed on the X11 compositor, wayland compositors are known for handling their own input. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/378 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index b98827a3c..6f6677d64 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -1072,8 +1072,7 @@ var LayoutManager = GObject.registerClass({ } } - if (!Meta.is_wayland_compositor()) - global.set_stage_input_region(rects); + global.set_stage_input_region(rects); this._isPopupWindowVisible = isPopupMenuVisible; let workspaceManager = global.workspace_manager; diff --git a/src/shell-global.c b/src/shell-global.c index 4295162a8..4ad23fdac 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -642,6 +642,9 @@ shell_global_set_stage_input_region (ShellGlobal *global, g_return_if_fail (SHELL_IS_GLOBAL (global)); + if (meta_is_wayland_compositor ()) + return; + nrects = g_slist_length (rectangles); rects = g_new (XRectangle, nrects); for (r = rectangles, i = 0; r; r = r->next, i++)